package com.example.demo.controller;

import com.example.demo.services.WeChatSubscribeMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.services.ShowActivities;
import com.example.demo.utils.GetTime;

/**
 * @author Buer
 * @update 2021/5/5/00521:31
 */
@RestController
public class MessageControl {
    @Autowired
    private WeChatSubscribeMessage weChatSubscribeMessage;

    @GetMapping("/test")
    public void test() {
        String str =
            "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
        weChatSubscribeMessage.getAccessToken();
    }
}
